package com.woniu.p2p.behindService;

import com.github.pagehelper.PageInfo;
import com.woniu.p2p.entity.User;
import com.woniu.p2p.entity.UserLoans;
import com.woniu.p2p.vo.BorrowVo;

import java.util.Date;
import java.util.List;

public interface MyBorrowService {

    //查询贷款管理
    PageInfo<BorrowVo> findAllBorrow(Integer start, Integer num, String borrowstatus, Date predate,Date nextdate,String borrowkeyword);
    //根据loansid查询userloans
    UserLoans findAllUserLoansByLoansId(Integer id);
    //根据用户id查询用户信息
    User findAllUserById(Integer id);
    //根据id删除贷款
    int deleteBorrowById(Integer id);
    //导出所有用户每月还贷信息
    List<BorrowVo> findAllBorrow(int[] id);
}
